/* 储存合同管理-基础设置相关请求 */

import { ajaxService } from '@/utils/request';
import { PostContractCodeInfo } from '../type';

const env = import.meta.env;
let baseURL = env.VITE_CONTRACT_URL;

/* 合同 编号 设置模块  */

// 获取合同编号数据
export function GetContractCodeInfo() {
  return ajaxService({
    url: '/contract/GetNumRule',
    method: 'get',
    baseURL,
  });
}

// 修改合同编号
export function PostContractCodeInfo(data: PostContractCodeInfo[]) {
  return ajaxService({
    url: '/contract/list/numSet',
    method: 'post',
    baseURL,
    data,
  });
}

/* ----------------------------------- ---------------------------------------------------------------------------------------------------------*/
